<template>
	<view>
		<hx-navbar ref="hxnb" :config="config" @clickBtn="clickBtn">
			<view slot="bottom">
				<template>
					<view class="info">
						<view class="info_item">
							<view class="title">
								总可发匹
							</view>
							<view class="text">
								0
							</view>
						</view>
						<view class="info_item">
							<view class="title">
								总可发数
							</view>
							<view class="text">
								0
							</view>
						</view>
					</view>
				</template>
			</view>
		</hx-navbar>
		<view class="multi">
			<view class="multi_item">
				<view class="multi_item_text">
					<text>仓库</text>
				</view>
				<view class="multi_item_text">
					<text>产品</text>
				</view>
				<view class="multi_item_text">
					<text>颜色</text>
				</view>
				<view class="multi_item_text">
					<text>规格</text>
				</view>
			</view>
			<view class="multi_item">
				<view class="multi_item_input">
					<u--input placeholder="缸号" border="surround"></u--input>
				</view>
				<view class="multi_item_input">
					<u--input placeholder="颜色" border="surround"></u--input>
				</view>
				<view class="multi_item_input">
					<u--input placeholder="仓库" border="surround"></u--input>
				</view>
				<view class="multi_item_input">
					<u--input placeholder="产品" border="surround"></u--input>
				</view>
			</view>
		</view>

		<view class="card">
			<view class="title">
				<text>2312 总可发: 5匹 384</text>
			</view>
			<view class="card_item">
				<view class="card_item_row">
					<view class="color_name">
						<text>1#</text>
					</view>
					<view class="item">
						<text class="label">出库数</text>
						<view class="input">
							<u--input border="surround"></u--input>
						</view>
						<text class="sign">米</text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="explosibility">
						<text class="label">可发</text>
						<text class="value">1匹 3米</text>
					</view>
					<view class="item">
						<text class="label">剪样数</text>
						<view class="input">
							<u--input border="surround"></u--input>
						</view>
						<text class="sign a">米</text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">副宽</text>
						<text class="value"></text>
					</view>
					<view class="item">
						<text class="label">克重</text>
						<text class="value"></text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">库存模式</text>
						<text class="value">+</text>
					</view>
					<view class="item">
						<text class="label">空差</text>
						<text class="value"></text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">净重数</text>
						<text class="value">3</text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">规格</text>
						<text class="value"></text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">缸号</text>
						<text class="value"></text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">批号</text>
						<text class="value"></text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">卷号</text>
						<text class="value"></text>
					</view>
				</view>
				<view class="card_item_row">
					<view class="item">
						<text class="label">仓位</text>
						<text class="value"></text>
					</view>
				</view>
			</view>
		</view>
		<view class="bottom-submit">
			<view class="info_text">
				<view class="text">
					<text class="label">已选</text>
					<text class="value">0匹</text>
				</view>
				<view class="text">
					<text class="label">数量</text>
					<text class="value g">0</text>
				</view>
			</view>
			<view class="button">
				<u-button class="button_u" text="确定" shape="circle"></u-button>
				<u-button class="button_u" type="primary" text="继续调用" shape="circle"></u-button>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				config: {
					title: "调库存",
					color: "#ffffff",
					backgroundColor: [1, ["#409EFF", "#409EFF", "#60b4f6", "#60b4f6"]],
					rightButton: [{
						key: "btn1",
						icon: "&#xe888;",
						position: "left",
					}, ],
				},
			}
		},
		methods: {
			clickBtn() {

			}
		}
	}
</script>

<style scoped lang="scss">
	.info {
		display: flex;
		justify-content: space-around;
		margin-top: 20rpx;
		padding-bottom: 15rpx;

		.info_item {
			width: 160rpx;
			padding: 0 20rpx;
			text-align: center;

			.title {
				font-size: 28rpx;
				font-weight: inherit;
				color: #f6f6f6;
			}

			.text {
				margin-top: 5rpx;
			}
		}
	}

	.multi {
		margin-top: 120rpx;

		.multi_item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 20rpx 10rpx;
			background-color: #fff;
			border-bottom: 1rpx solid #dddddd;

			.multi_item_text {
				width: 20%;
				text-align: center;
				font-size: 24rpx;
				color: #545454;
			}

			.multi_item_input {
				width: 24%;
			}
		}
	}

	.card {
		margin-top: 20rpx;
		padding: 0 15rpx;

		.title {
			font-size: 28rpx;
			font-weight: bold;
			margin-bottom: 10rpx;
		}

		.card_item {
			padding: 15rpx 20rpx;
			background-color: #fff;
			margin-bottom: 20rpx;

			.card_item_row {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 20rpx;

				&:last-child {
					margin-bottom: 0;
				}

				.color_name {
					font-size: 30rpx;
					color: #74e57e;
				}

				.item,
				.explosibility {
					display: flex;
					align-items: center;
					width: 50%;
					font-size: 30rpx;
					color: #737373;

					.input {
						width: 160rpx;
						margin: 0 15rpx;
					}

					.sign.a {
						color: #4fbbff;
					}

					.value {
						color: #000;
						margin-left: 8rpx;
					}
				}

				.explosibility .value {
					margin-left: 8rpx;
					color: #4fbbff;
				}
			}
		}
	}
	
	.bottom-submit {
	  position: fixed;
	  bottom: 0;
	  display: flex;
	  flex-direction: row;
	  justify-content: space-between;
	  width: 750rpx;
	  height: 100rpx;
	  background-color: #FFFFFF;
	  z-index: 999;
	  padding: 10rpx 30rpx;
	  padding-top: 15rpx;
	
	  &.sales {
	    justify-content: flex-end;
	  }
	
	  .info_text {
	    .text {
	      .label {
	        font-size: 30rpx;
	        color: #ababab;
	      }
	      .value {
	        margin-left: 15rpx;
	        font-size: 30rpx;
	        color: #29b929;
	        &.g {
	          color: #87e0ff;
	        }
	      }
	    }
	  }
	
	  .button {
		display: flex;
		justify-content: space-between;
		width: 65%;
		.button_u {
			width: 200rpx;
		}
	  }
	}
</style>